package controllers

import java.io.File
import javax.inject.Inject

import play.api.mvc._
import dao._
import org.apache.commons.io.FileUtils
import scala.collection.JavaConverters._
import scala.concurrent.ExecutionContext.Implicits.global

class TestController @Inject()(cc:ControllerComponents,melonShapeDao: MelonShapeDao,bgAnnoDao: BgAnnoDao) extends AbstractController(cc) {

  def test = Action.async {
    bgAnnoDao.selectAllChrs.map { x =>
      println(x.distinct.size)
      Ok("success!")
    }
  }

}
